package com.xingkeduo.pojo.query;

import com.xingkeduo.pojo.dto.BaseDTO;
import com.xingkeduo.util.pojo.base.BaseQuery;
import com.xingkeduo.util.pojo.enums.YesNoEnum;
import org.apache.ibatis.type.Alias;

import java.util.List;

/**
 * 发型师服务表
 *
 * @author gaozifeng
 * @time 2019年2月18日17:45:29
 * @description
 */
@Alias("CraftsmanServiceQO")  //别名 和.xml里面一样  mybatis.xml里面 新增表 需要新建对应
public class CraftsmanServiceQO extends BaseQuery<CraftsmanServiceQO> {

    private long craftsmanId;

    private long serviceId;

    private long shopId;

    private YesNoEnum status;

    private String prices;

    private List<Long> serviceIds;

    private List<Long> craftsmanIds;

    private List<Long> shopIds;

    private YesNoEnum isDelete;

    private List<BaseDTO> serviceList;

    public List<Long> getShopIds() {
        return shopIds;
    }

    public CraftsmanServiceQO setShopIds(List<Long> shopIds) {
        this.shopIds = shopIds;
        return this;
    }

    public YesNoEnum getStatus() {
        return status;
    }

    public CraftsmanServiceQO setStatus(YesNoEnum status) {
        this.status = status;
        return this;
    }

    public long getShopId() {
        return shopId;
    }

    public CraftsmanServiceQO setShopId(long shopId) {
        this.shopId = shopId;
        return this;
    }

    public List<BaseDTO> getServiceList() {
        return serviceList;
    }

    public CraftsmanServiceQO setServiceList(List<BaseDTO> serviceList) {
        this.serviceList = serviceList;
        return this;
    }

    public String getPrices() {
        return prices;
    }

    public CraftsmanServiceQO setPrices(String prices) {
        this.prices = prices;
        return this;
    }

    public YesNoEnum getIsDelete() {
        return isDelete;
    }

    public CraftsmanServiceQO setIsDelete(YesNoEnum isDelete) {
        this.isDelete = isDelete;
        return this;
    }

    public List<Long> getCraftsmanIds() {
        return craftsmanIds;
    }

    public CraftsmanServiceQO setCraftsmanIds(List<Long> craftsmanIds) {
        this.craftsmanIds = craftsmanIds;
        return this;
    }

    public List<Long> getServiceIds() {
        return serviceIds;
    }

    public CraftsmanServiceQO setServiceIds(List<Long> serviceIds) {
        this.serviceIds = serviceIds;
        return this;
    }

    public long getCraftsmanId() {
        return craftsmanId;
    }

    public CraftsmanServiceQO setCraftsmanId(long craftsmanId) {
        this.craftsmanId = craftsmanId;
        return this;
    }

    public long getServiceId() {
        return serviceId;
    }

    public CraftsmanServiceQO setServiceId(long serviceId) {
        this.serviceId = serviceId;
        return this;
    }
    public boolean isEmpty() {
		if (!isSuperEmpty() || serviceId>0L)
			return false;

		return true;
	}
    @Override
    public String toString() {
        return "CraftsmanServiceQO{" +
                "craftsmanId=" + craftsmanId +
                ", serviceId=" + serviceId +
                ", shopId=" + shopId +
                ", status=" + status +
                ", prices='" + prices + '\'' +
                ", serviceIds=" + serviceIds +
                ", craftsmanIds=" + craftsmanIds +
                ", shopIds=" + shopIds +
                ", isDelete=" + isDelete +
                ", serviceList=" + serviceList +
                '}';
    }
}
